<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head th:replace="userCommon::common-header"></head>
<body class="sb-nav-fixed">
<nav th:replace="userCommon::common-navbar"></nav>
<div id="layoutSidenav">
  <div th:replace="userCommon::common-sidenav"></div>

  <div id="layoutSidenav_content">
    <main>
      <div class="container-fluid px-4">
        <h1 class="mt-4">查看器材</h1>

        <ol class="breadcrumb mb-4">
          <li class="breadcrumb-item"><a th:href="@{/toAdminMain}">主页</a></li>
          <li class="breadcrumb-item active">空闲器材</li>
        </ol>

          <div class="card mb-4">
              <div class="card-header">
                  <i class="fas fa-table me-1"></i>
                  器材信息表
              </div>
              <div class="card-body">
                  <!--emp.birth为Date类型-->
                  <!--如果是字符串，就无需转换，但字符串本身也必需是类似于"yyyy-MM-dd"的格式-->
                  <input th:value="${#dates.format(useTime, 'yyyy-MM-dd HH:mm:ss')}" type="datetime-local" class="form-control">
                  <a th:href="@{/user/setTime(useTime=${useTime})}"
                     style="text-decoration: none">
                      <input type="button" class="btn btn-sm btn-outline-primary" value="确定">
                  </a>
              </div>
          </div>
      </div>
    </main>
    <footer th:replace="userCommon::common-footer"></footer>
  </div>
</div>

<div th:include="userCommon::common-scripts"></div>
</body>
</html>
